package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;


/**
 * 用户点赞对象
 */
@Getter
@Setter
public class UserLike extends BaseDomain {

    //点赞对象的类型
    public static final Integer TYPE_TRAVEL = 0; //游记
    public static final Integer TYPE_STRATEGY = 1; //攻略
    public static final Integer TYPE_COMMENT = 2; //评论
    private Long userId;//用户id
    private Long likeId;//点赞对象id
    private Integer type;//点赞类型

    private User user;//点赞的人
    private String title;//被点赞的文章标题

    public String getTitlemsg(){
        String msg="在我的游记";
        if(title!=null){
            msg=msg+title+"中点赞了我";
        }
        return  msg;
    }

}